package com.idroc.lab.testing;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.idroc.coelacanth.core.membership.EndpointMeta;
import com.idroc.coelacanth.core.membership.MemberState;
import com.idroc.coelacanth.core.membership.MemberStateObserver;

public class DemoMemberStateObserver implements MemberStateObserver {
	
	private static final Logger log = LoggerFactory.getLogger(DemoMemberStateObserver.class);

	public void update(MemberState state, EndpointMeta item) {

		log.info("MemberState[{}], Endpoint[{}]", state.getName(), item.endpoint); 
	}

}
